

from PySide6.QtCore import QObject, Signal, Slot

class SystemStatus(QObject):
    _instance = None
    systemStatusSignal = Signal(str)

    def __new__(cls, *args, **kwargs):
        if cls._instance is None:
            cls._instance = super().__new__(cls)
        return cls._instance

    @Slot(str)
    def system_status(self, status):
        self.systemStatusSignal.emit(status)


